home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / newsgrp / group92c.txt / 000089_icon-group-sender _Tue Nov 17 10:50:06 1992.msg < prev    next >
Internet Message Format  |  1993-01-04  |  831b

  1. Received: by cheltenham.cs.arizona.edu; Tue, 17 Nov 1992 11:34:31 MST
  2. Date: Tue, 17 Nov 92 10:50:06 EST
  3. From: Paul_Abrahams@MTS.cc.Wayne.edu
  4. To: icon-group@cs.arizona.edu
  5. Message-Id: <528466@MTS.cc.Wayne.edu>
  6. Subject: Field names of a record type
  7. Status: R
  8. Errors-To: icon-group-errors@cs.arizona.edu
  9.  
  10. I recently proposed a builtin Icon function that would convert field names
  11. to their corresponding positions, as a way of constructing the desired
  12. second argument to sortf.  That led me to the following question: does
  13. such a function need to be built in?  Surprisingly, it seems so.
  14.  
  15. Putting it another way: given the name of an Icon record type, is there a
  16. straightforward way to list the names of its fields in the same order
  17. as they appear in its definition?  So far I haven't found one.
  18.  
  19. Paul Abrahams
  20.  
  21.